home *** CD-ROM | disk | FTP | other *** search
- /* $Id: xform.c,v 1.3 1993/07/02 07:17:39 mjl Exp $
- $Log: xform.c,v $
- * Revision 1.3 1993/07/02 07:17:39 mjl
- * Changed include of plplot.h to plplotP.h.
- *
- * Revision 1.2 1992/09/29 04:46:49 furnish
- * Massive clean up effort to remove support for garbage compilers (K&R).
- *
- * Revision 1.1 1992/05/20 21:36:02 furnish
- * Initial checkin of the whole PLPLOT project.
- *
- */
-
- /* xform.c
-
- Example linear transformation function for contour plotter.
- */
-
- #include "plplotP.h"
-
- extern PLFLT tr[];
-
- void
- xform(PLFLT x, PLFLT y, PLFLT * tx, PLFLT * ty)
- {
- *tx = tr[0] * x + tr[1] * y + tr[2];
- *ty = tr[3] * x + tr[4] * y + tr[5];
- }
-